from collections import Counter


# 给定一个字符串，只包含大小写字母，输出该字符串中出现次数最多的字母（大小写算同一个字母），如果几个字符出现次数一样多，则任意输出一个
def count_fun():
    sting = 'AaaBBBBBbbbbbCCCCCc'
    count = Counter(sting)
    print(count)
    max_count = 0
    max_value = None
    for k, v in count.items():
        if v > max_count:
            max_count = v
            max_value = [k]
        elif v == max_count:
            max_value.append(k)
    if len(max_value) > 1:
        print(max_value)
    else:
        print(max_value[0])


if __name__ == '__main__':
    count_fun()
